import request from "@/utils/request";

/**
 * 列表
 * @param data
 * @returns {AxiosPromise}
 */
export function listPdrPayRecord(data) {
    return request({
        url: '/wbzj-biz/pdrPay/pfm/getPayRecordPageList',
        method: 'post',
        data: data
    })
}

export function getPayTotalAmount(query) {
    return request({
        url: '/wbzj-biz/pdrPay/getPayTotalAmount',
        method: 'get',
        params: query
    })
}

export function getWalletSmry(query) {
    return request({
        url: '/wbzj-biz/pdrPay/getWalletSmry',
        method: 'get',
        params: query
    })
}

/**
 * 发票列表
 * @param data
 * @returns {AxiosPromise}
 */
export function listPdrPayInvc(data) {
    return request({
        url: '/wbzj-biz/pdrPayInvc/getPageList',
        method: 'post',
        data: data
    })
}

/**
 * 发票寄出
 * @param data
 * @returns {AxiosPromise}
 */
export function invcPost(invcId) {
    return request({
        url: '/wbzj-biz/pdrPayInvc/post/'+invcId,
        method: 'post'
    })
}